﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace CitizenDiary.Sync.Contract
{
    [DataContract]
    public class SynchronizeResponse
    {
        //[DataMember]
        //public IEnumerable<DownloadItem> DownloadItems { get; set; }

        [DataMember]
        public SynchronizationCollection SynchronizationItems { get; set; }

        [DataMember]
        public long MaxUpdateVersion { get; set; }


        public SynchronizeResponse()
        {
            SynchronizationItems = new SynchronizationCollection();
            //DownloadItems = new List<DownloadItem>();
        }

        //[DataContract]
        //public class DownloadItem
        //{
        //    [DataMember]
        //    public bool IsNew { get; set; }

        //    [DataMember]
        //    public Guid ID { get; set; }

        //    [DataMember]
        //    public string Content { get; set; }

        //    [DataMember]
        //    public long UpdatedVersion { get; set; }

        //    [DataMember]
        //    public Guid UpdatedDeviceID { get; set; }

        //    [DataMember]
        //    public bool IsDeleted { get; set; }
        //}
    }
}
